import java.util.ArrayList;
import java.util.List;

public class test3 {
    public static void main(String[] args) {
       Student s1 =new Student();
       s1.setName("小李");
        s1.addScore(85);
        s1.addScore(75);
        s1.addScore(95);
        System.out.println(s1.getName()+ s1.getAverageScore());

        Student s2 =new Student();
        s2.setName("小王");
        s2.addScore(88);
        s2.addScore(98);
        s2.addScore(81);
        System.out.println(s2.getName()+ s2.getAverageScore());

        Student s3 =new Student();
        s3.setName("小花");
        s3.addScore(84);
        s3.addScore(82);
        s3.addScore(87);
        System.out.println(s3.getName()+ s3.getAverageScore());

        Student s4 =new Student();
        s4.setName("小清");
        s4.addScore(88);
        s4.addScore(82);
        s4.addScore(98);
        System.out.println(s4.getName()+ s4.getAverageScore());

        Student s5 =new Student();
        s5.setName("小王");
        s5.addScore(79);
        s5.addScore(75);
        s5.addScore(65);
        System.out.println(s5.getName()+ s5.getAverageScore());

     // 打印表格的表头
     System.out.printf("%-10s %-10s\n", "Name", "Average Score");
     System.out.println("----------------------------------------");

     // 打印学生的名字和平均成绩
     System.out.printf("%-10s %-10.2f\n", s1.getName(), s1.getAverageScore());
     System.out.printf("%-10s %-10.2f\n", s2.getName(), s2.getAverageScore());
     System.out.printf("%-10s %-10.2f\n", s3.getName(), s3.getAverageScore());
     System.out.printf("%-10s %-10.2f\n", s4.getName(), s4.getAverageScore());
     System.out.printf("%-10s %-10.2f\n", s5.getName(), s5.getAverageScore());
    }
 }


